package cn.dw.service.impl;

import cn.dw.dao.DutyInfoDao;
import cn.dw.domain.DutyInfo;
import cn.dw.domain.People;
import cn.dw.service.DutyInfoService;

import java.util.List;

public class DutyInfoServiceImpl
  implements DutyInfoService
{
  private DutyInfoDao did;
  
  public List<DutyInfo> getAll()
  {
    return this.did.getAll();
  }
  
  public void setDid(DutyInfoDao did)
  {
    this.did = did;
  }
  
  public void save(DutyInfo dInfo)
  {
    this.did.save(dInfo);
  }
  
  public DutyInfo getByPeople(People peo)
  {
    return this.did.getByPeople(peo);
  }
  
  public void updata(DutyInfo diInfo)
  {
    this.did.update(diInfo);
  }
}
